package com.jason.mvptest3.itfcontract;

import com.jason.mvptest3.bean.Person;
import com.jason.mvptest3.presenter.BasePresenter;
import com.jason.mvptest3.view.BaseView;

/**
 * @Author: Jason
 * @Date: 2016/11/21
 * @Time: 14:17.
 */

public interface LoginContract {

    interface View extends BaseView<Presenter> {

        void showLoadingDialog();

        void hideLoadingDialog();

        String getUserName();

        String getPassWord();

        void showLoadingError(String msg);

        void cleanUserName();

        void cleanPassWord();

        void toActivity(Person person);

        void showUserNameOrPassWordEmpty();


    }

    interface Presenter extends BasePresenter {

        void loadingTask();

        // activity 的回调
        void result(int requestCode, int resultCode);

    }

}
